package com.jyxd.web.service.assessment.basic;

import com.jyxd.web.dao.basic.RespiratorDataDao;
import com.jyxd.web.data.basic.RespiratorData;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;
import java.util.Map;

/**
 * 生命体征2合一表
 */
@Service
@Transactional
public class RespiratorDataService {

    protected final Logger logger = LoggerFactory.getLogger(this.getClass());
    @Autowired
    private RespiratorDataDao respiratorDataDao;

    public boolean insert(RespiratorData respiratorData) {
        return respiratorDataDao.insert(respiratorData);
    }

    public boolean update(RespiratorData respiratorData) {
        return respiratorDataDao.update(respiratorData);
    }

    public RespiratorData queryData(String id) {
        return respiratorDataDao.queryData(id);
    }

    public List<RespiratorData> queryList(Map<String, Object> map) {
        return respiratorDataDao.queryList(map);
    }
}
